Stored Procedures [dbo].[BAEOrderCategoryParentLookupGetorderCategoryParentId]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@oCatIDint4
SQL Script
create procedure [dbo].[BAEOrderCategoryParentLookupGetorderCategoryParentId] @oCatID int as
SELECT    ocpl.OrderCategoryID, ocpl.OrderCategoryParentID, oc.Title
    FROM    OrderCategoryParentLookup AS ocpl
        INNER JOIN OrderCategory AS oc on oc.OrderCategoryID = ocpl.OrderCategoryID
    WHERE    ocpl.OrderCategoryID = @oCatID;

GO
Uses